import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  // base: '/da/',
  // mode: "history",
  routes: [
    //Start 建筑部分
    {
      path: '/',
      name: 'home',
      component: () =>
        // import ("@/views/test.vue"),
        import ("@/views/project"),
      meta: {
        title: '建筑信息'
      }
    },
    {
      path: '/addbuildings',
      name: 'addbuildings',
      component: () =>
        import ("@/views/project/building/AddBuildings.vue"),
      meta: {
        title: '添加建筑'
      }
    },
    {
      path: '/eidtbuildings',
      name: 'eidtbuildings',
      component: () =>
        import ("@/views/project/building/EditBuildings.vue"),
      meta: {
        title: '编辑建筑'
      }
    },
    {
      path: '/selectBuildings',
      name: 'selectBuildings',
      component: () =>
        import ("@/views/project/building/SelectBuildings.vue"),
      meta: {
        title: '操作'
      }
    },
    //END 建筑

    //Start 楼层
    {
      path: '/floor',
      name: 'floor',
      component: () =>
        import ("@/views/project/floor/index.vue"),
      meta: {
        title: '楼层信息'
      }
    },
    {
      path: '/addfloor',
      name: 'addfloor',
      component: () =>
        import ("@/views/project/floor/AddFloor.vue"),
      meta: {
        title: '添加楼层'
      }
    },
    {
      path: '/editfloor',
      name: 'editfloor',
      component: () =>
        import ("@/views/project/floor/EditFloor.vue"),
      meta: {
        title: '编辑楼层'
      }
    },
    {
      path: '/selectFloor',
      name: 'selectFloor',
      component: () =>
        import ("@/views/project/floor/SelectFloor.vue"),
      meta: {
        title: '操作'
      }
    },
    //END 楼层

    //Start 空间
    {
      path: '/spaces',
      name: 'spaces',
      component: () =>
        import ("@/views/project/spaces/index.vue"),
      meta: {
        title: '空间信息'
      }
    },
    {
      path: '/addspaces',
      name: 'addspaces',
      component: () =>
        import ("@/views/project/spaces/AddSpaces.vue"),
      meta: {
        title: '添加空间'
      }
    },
    {
      path: '/editspaces',
      name: 'editspaces',
      component: () =>
        import ("@/views/project/spaces/EditSpaces.vue"),
      meta: {
        title: '编辑空间'
      }
    },
    {
      path: '/selectSpaces',
      name: 'selectSpaces',
      component: () =>
        import ("@/views/project/spaces/SelectSpaces.vue"),
      meta: {
        title: '操作'
      }
    },
    {
      path: '/addspaces',
      name: 'addfspaces',
      component: () =>
        import ("@/views/project/building/kong.vue"),
      meta: {
        title: '添加空间'
      }
    },
    //END 空间

    //Start 设备
    {
      path: '/equipment',
      name: 'equipment',
      component: () =>
        import ("@/views/project/equipment"),
      meta: {
        title: '设备信息'
      }
    },
    {
      path: '/addequipment',
      name: 'addequipment',
      component: () =>
        import ("@/views/project/equipment/AddEquipment.vue"),
      meta: {
        title: '添加设备'
      }
    },
    {
      path: '/equipmentPrev',
      name: 'equipmentPrev',
      component: () =>
        import ("@/views/project/equipment/EquipmentPrev.vue"),
      meta: {
        title: '编辑设备'
      }
    },
    //END 设备
    {
      path: '/test',
      name: 'test',
      component: () =>
        import ("@/views/test.vue"),
      meta: {
        title: '测试导出'
      }
    },
  ]
})


export default router